<%@page contentType="text/html; charset=utf-8" %>
<%@ include file="/commons/taglibs.jsp"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>回访管理</title>
<%@ include file="/commons/commonList.jsp"%>
<script type="text/javascript" src="${ctx}/scripts/common/prototype.js"></script>
<script language="JavaScript"  src="${ctx}/scripts/common.js"></script>
<script language="JavaScript"  src="${ctx}/scripts/div/common.js"></script>
<script language="JavaScript"  src="${ctx}/scripts/ajaxException.js"></script>
<script type="text/javascript">
	function openAddReturnVisit(){ //打开回访登记页面
		var url ="${ctx}/customerService_returnVisitAction.do?method=isAllowReturnVisit"
		var params = "eventID=${customerServiceEventID}";
		sendAjaxRequest(url,params,function(result){
			ajaxSubmitException(result.responseText);
			var urlAdd = "${ctx}/customerService_returnVisitAction.do?method=nvigateAddReturnVisit";
			urlAdd += "&customerServiceEventID=${customerServiceEventID}";
			top.windowOpen(urlAdd, "returnVisitAdd", "回访登记", 580, 620,true,"returnVisitAddFrame");
		});
	}
	function openAside(currendId){ //打开作废页面
		var url ="${ctx}/customerService_returnVisitAction.do?method=validationAside"
		var params = "returnVisitID=" + currendId;
		sendAjaxRequest(url,params,function(result){
			ajaxSubmitException(result.responseText);
			var url = "${ctx}/customerService_returnVisitAction.do?method=nvigateAside&returnVisitId=" + currendId;
			url += "&customerServiceEventID=${customerServiceEventID}";
			top.windowOpen(url,"returnVisitAside","作废",230,400,true,"returnVisitAsideFrame");
		});
	}
	function openDetail(currentId){ //打开事件跟踪详细
		var url = "${ctx}/customerService_returnVisitAction.do?method=nvigateDetail&keyword=" + currentId;
		top.windowOpen(url, "returnVisitDetail", "回访登记详细", 580, 620,true,"returnVisitDetailFrame");
	}
	function flushFrame(){//刷新列表
		var url = "${ctx}/customerService_returnVisitAction.do?method=queryReturnVisitRecordByPag"
		url += "&customerServiceEventID=${customerServiceEventID}";
		$("questionaireInfoList").src = url;
	}
	function flushMainFrame(){//刷新主页面
		findFrame("main").refleshFrame();
	}
	function init(){  //页面初始化方法
		var url = "${ctx}/customerService_returnVisitAction.do?method=queryReturnVisitRecordByPag"
		url += "&customerServiceEventID=${customerServiceEventID}";
		$("questionaireInfoList").src = url;
	}

	function printReturnVisitItem(){
		$('report').submit();
	}
</script>
</head>

<body onload="init();">
<form id="report" target="_blank" name="report" action="${ctx}/applets/appletShow.jsp">
	<input id="customerServiceEventID" name="customerServiceEventID" type="hidden" value="${customerServiceEventID }" />
	<input type="hidden" id="reportName" name="reportName" value="returnVisitItem">
</form>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td class="window_head_outBg">
    	<table border="0" cellpadding="0" cellspacing="0">
	      <tr>
	        <td>
	        	<span class="window_head_intext">
	        		<img src="${ctx}/images/ico_Advance.gif" align="absmiddle" />&nbsp;回访管理
	        	</span>
	        </td>
	      </tr>
    	</table>
    </td>
  </tr>
  <tr>
    <td class="aux_header_line_1"></td>
  </tr>
  <tr>
    <td class="aux_header_line_2"></td>
  </tr>
  <tr>
    <td valign="middle" class="content">

	<table width="100%" border="0" cellpadding="0" cellspacing="1">
          <tr>
            <td>
				<div>
				  <table width="100%" border="0" cellpadding="0" cellspacing="0"   class="tab_line">
				    <tr>
				      <td class="bg_toolBar"><table width="100%" border="0" cellspacing="0" cellpadding="0">
				        <tr>
				          <td>&nbsp;</td>
				          <td align="right"><!--------------------------右边图标01----------------------------------->
				                <table border="0" cellpadding="0" cellspacing="0" id="ico1">
				                  <tr>
				                  <pms:AuthTag authName="customerService_returnVisitAction.do?method=nvigateAddReturnVisit">
				                   <td class="toolbarico">
				                   	<a href="#" onClick="openAddReturnVisit();"onfocus="this.blur()">
				                   		<img src="${ctx}/images/ico_newfile.gif" border="0" align="absbottom" alt="新增回访"/>&nbsp;
				                   	</a>
				                   </td>
                                   </pms:AuthTag>
                                   <pms:AuthTag authName="customerService_returnVisitAction.do?method=nvigateAside">
				                  <td class="toolbarico">
				                  	<a href="#" onClick="document.frames('questionaireInfoList').openAside();" onFocus="this.blur()">
				                  		<img src="${ctx}/images/ico_delete.gif" alt="作 废" width="16" height="16" border="0" align="absbottom" />
				                  	</a>
				                  </td>
				                  </pms:AuthTag>
				                  <pms:AuthTag authName="menu.nopage.printReturnVisitItem">
								<td class="toolbarico">
				                  	<a href="javascript:printReturnVisitItem();" onFocus="this.blur()">
				                  		<img src="${ctx}/images/ico_printer.gif" alt="打印" width="16" height="16" border="0" align="absbottom" />
									</a>
				                  </td>
				                  </pms:AuthTag>
				                  </tr>
				                </table>
				            <!--------------------------右边图标end----------------------------------->          </td>
				        </tr>
				      </table></td>
				    </tr>
				    <tr>
				      <td valign="top">
						<iframe  id="questionaireInfoList"
							name="questionaireInfoList" height="400px" frameborder="0" border="0"  width="100%"
							src="" ></iframe>
				      </td>
				    </tr>
				  </table>
				</div>
				</td>
            </tr>
        </table>
	</td>
  </tr>
  <tr>
    <td colspan="2" class="window_footer"><table border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td>&nbsp;</td>
          <td class="btn_between_space"></td>
          <td></td>
          <td class="btn_between_space"></td>
          <td><table border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td class="buttonOffLeft" id="btn1_31"></td>
                <td class="buttonOffMiddle" id="btn1_32" onClick="flushMainFrame();windowClose();" onMouseOver="btn_change_over(3)" onMouseOut="btn_change_out(3)" onBlur="btn_change(3)"><img src="${ctx}/images/ico_cancel.gif" alt="" width="14" height="14" border="0" align="absbottom" /> 关 闭</td>
                <td class="buttonOffRight" id="btn1_33"></td>
              </tr>
          </table></td>
        </tr>
          </table>
      <p>&nbsp;</p></td>
  </tr>
</table>
</body>
</html>